package kr.hkit.powerjava.chapter21.work;

import java.io.*;

public class TestExx {
	public static void main(String[] args) {
		try{
			System.out.println(readString());
		}catch(IOException e){
			System.out.println(e.getMessage());
			e.printStackTrace();
		}
	}
	public static String readString() throws IOException{
		byte[] buf = new byte[10];
		System.out.println("문자열을 입력하시오 : ");
		System.in.read(buf);
		return new String(buf);
	}
}
